package main

import (
	"github.com/gin-gonic/gin"
	"study1/gin/controller"
)

func main() {
	r := gin.Default()

	user := r.Group("user")
	{
		user.GET("/list", func(c *gin.Context) {
			c.JSON(200, gin.H{

				"code": 200,
			})

		})

		user.GET("user", controller.Usercontroller{}.Use)
	}
	r.Run(":8080")
}
